using System;

namespace EventBehaviorTree
{
    public abstract class BBData<T> : BBDataBase
    {
        protected T _value;

        public BBData(T value) { _value = value; }

        public void SetValue(T value)
        {
            _value = value;
        }

        public void SetValue(BBData<T> EBTValue)
        {
            _value = EBTValue.GetValue();
        }

        public T GetValue()
        {
            return _value;
        }
    }
}